package com.sky.service;

import com.sky.dto.DataOverViewQueryDTO;
import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @version v1.0
 * @author OldGj 2024/5/27
 * @apiNote 数据统计业务层相关
 */
public interface ReportService {


    /**
     * 营业额统计
     * @return
     */
    TurnoverReportVO getTurnoverStatistics(LocalDate beginTime, LocalDate endTime);

    /**
     * 根据时间区间统计用户数量
     * @param begin
     * @param end
     * @return
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    /**
     * 查询销量排名TOP10
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getOrderNumberTop10(LocalDate begin, LocalDate end);

    /**
     * 导出Excel报表接口
     * @param servletResponse
     */
    void exportExcel(HttpServletResponse servletResponse);
}
